/*
 * Copyright © 2019 by MaShibo. All Rights Reserved.
 */

package mashibo.project.etc.assistant.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import mashibo.project.etc.assistant.utils.ActivityCollector;

/**
 * 活动基础类
 */
public class BaseActivity extends AppCompatActivity {


    private static final String TAG = "BaseActivity";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d(TAG, "onCreate: " + getClass().getSimpleName());
        ActivityCollector.addActivity(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ActivityCollector.removeActivity(this);
    }
}
